kindupload = {
    start: function (o) {
        var o = $.extend({ form: "form[name=example]", uploadJson: "editorphp/upload_json.php", fileManagerJson: "editorphp/file_manager_json.php" }, o);
        // 关闭过滤模式，保留所有标签
        KindEditor.options.filterMode = false;
        KindEditor.create('textarea[name="' + $(o.form).find("textarea").attr("name") + '"]', { //'textarea[name="content1"]'
            uploadJson: '../moudle/editorphp/upload_json.php',
            fileManagerJson: '../moudle/editorphp/file_manager_json.php',
            allowFileManager: true,
            afterCreate: function () {
                var self = this;
                KindEditor.ctrl(document, 13, function () {
                    self.sync();

                    $(o.form)[0].submit();
                });
                KindEditor.ctrl(self.edit.doc, 13, function () {
                    self.sync();

                    $(o.form)[0].submit();
                });
            }
        });
        prettyPrint();
    }
}